﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="definition">
		<xs:complexType>
			<xs:sequence>
				<xs:element minOccurs="1" maxOccurs="unbounded" name="group">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="managers">
								<xs:complexType>
									<xs:sequence>
										<xs:element maxOccurs="unbounded" name="manager">
											<xs:complexType>
												<xs:attribute name="identity" type="xs:string" use="required" />
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="contributors">
								<xs:complexType>
									<xs:sequence>
										<xs:element maxOccurs="unbounded" name="contributor">
											<xs:complexType>
												<xs:attribute name="identity" type="xs:string" use="required" />
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element maxOccurs="unbounded" name="termset">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="contact">
											<xs:complexType>
												<xs:attribute name="email" type="xs:string" use="required" />
											</xs:complexType>
										</xs:element>
										<xs:element name="owner">
											<xs:complexType>
												<xs:attribute name="identity" type="xs:string" use="required" />
											</xs:complexType>
										</xs:element>
										<xs:element name="stakeholders">
											<xs:complexType>
												<xs:sequence>
													<xs:element maxOccurs="unbounded" name="stakeholder">
														<xs:complexType>
															<xs:attribute name="identity" type="xs:string" use="required" />
														</xs:complexType>
													</xs:element>
												</xs:sequence>
											</xs:complexType>
										</xs:element>
										<xs:element maxOccurs="unbounded" name="term">
											<xs:complexType>
												<xs:sequence>
													<xs:element name="labels">
														<xs:complexType>
															<xs:sequence>
																<xs:element maxOccurs="unbounded" name="label">
																	<xs:complexType>
																		<xs:attribute name="name" type="xs:string" use="required" />
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element maxOccurs="unbounded" name="term">
														<xs:complexType>
															<xs:sequence>
																<xs:element name="labels">
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element maxOccurs="unbounded" name="label">
																				<xs:complexType>
																					<xs:attribute name="name" type="xs:string" use="required" />
																				</xs:complexType>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
															<xs:attribute name="availablefortagging" type="xs:string" use="required" />
															<xs:attribute name="description" type="xs:string" use="optional" />
															<xs:attribute name="language" type="xs:string" use="required" />
														</xs:complexType>
													</xs:element>
												</xs:sequence>
												<xs:attribute name="defaultlabel" type="xs:string" use="required" />
												<xs:attribute name="description" type="xs:string" use="optional" />
												<xs:attribute name="language" type="xs:string" use="required" />
												<xs:attribute name="availablefortagging" type="xs:string" use="required" />
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="name" type="xs:string" use="required" />
									<xs:attribute name="description" type="xs:string" use="optional" />
									<xs:attribute name="availablefortagging" type="xs:string" use="required" />
								</xs:complexType>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="name" type="xs:string" use="required" />
						<xs:attribute name="description" type="xs:string" use="optional" />
					</xs:complexType>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="site" type="xs:string" use="required" />
		</xs:complexType>
	</xs:element>
</xs:schema>